const { defineConfig } = require('@vue/cli-service')
const webpack = require("webpack");

module.exports = defineConfig({
  transpileDependencies: true,
  configureWebpack: {
    resolve: {
      fallback: {
        // "path": false,
        "path": require.resolve("path-browserify"),
        "assert": false,
        "fs": false,
        // process: require.resolve("process"),
      } 
    },
    plugins: [ 
      new webpack.ProvidePlugin({
          Buffer: ['buffer', 'Buffer'],
      }),
      new webpack.ProvidePlugin({
        process: 'process/browser'
     })
    ],
  }
})
